var HOME = {
	id: -1,
	is_sending: false,
	menu: '#page-menu a.a-menu-about, #menu-top-page a.a-menu-about',
	init : function() {
		 var menuActive = $(HOME.menu);
		 menuActive.addClass('-active');
		$('#nivo-slider').nivoSlider({
			effect : "fade",
			slices : 15,
			boxCols : 8,
			boxRows : 4,
			animSpeed : 500,
			pauseTime : 4500,
			startSlide : 0,
			directionNav : false,
			controlNav : true,
			controlNavThumbs : false,
			pauseOnHover : false,
			manualAdvance : false
		});
		//HOME.loadPage(HOME.id, 1);
	},
	loadPage: function(id, page){
		$.ajax({
			type: "POST",
			url: '/news/nextPart',
			data: {
				'id': id,
				'page': page
			},
			cache: false,
			success: function(data){
				HOME.is_sending = false;
				$('#related .content').html(data);	
			}
		});
	}
}